Optimal. Leaf size=179 \[ -\frac{b^2 e^2 \text{PolyLog}\left (2,-\frac{c+d x+1}{-c-d x+1}\right )}{3 d}+\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{b e^2 (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}+\frac{e^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{2 b e^2 \log \left (\frac{2}{-c-d x+1}\right ) \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}-\frac{b^2 e^2 \tanh ^{-1}(c+d x)}{3 d}+\frac{1}{3} b^2 e^2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.237224, antiderivative size = 179, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 10, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.435, Rules used = {6107, 12, 5916, 5980, 321, 206, 5984, 5918, 2402, 2315} \[ -\frac{b^2 e^2 \text{PolyLog}\left (2,-\frac{c+d x+1}{-c-d x+1}\right )}{3 d}+\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{b e^2 (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}+\frac{e^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{2 b e^2 \log \left (\frac{2}{-c-d x+1}\right ) \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}-\frac{b^2 e^2 \tanh ^{-1}(c+d x)}{3 d}+\frac{1}{3} b^2 e^2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6107
Rule 12
Rule 5916
Rule 5980
Rule 321
Rule 206
Rule 5984
Rule 5918
Rule 2402
Rule 2315
Rubi steps
\begin{align*} \int (c e+d e x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2 \, dx &=\frac{\operatorname{Subst}\left (\int e^2 x^2 \left (a+b \tanh ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{d}\\ &=\frac{e^2 \operatorname{Subst}\left (\int x^2 \left (a+b \tanh ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{d}\\ &=\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{\left (2 b e^2\right ) \operatorname{Subst}\left (\int \frac{x^3 \left (a+b \tanh ^{-1}(x)\right )}{1-x^2} \, dx,x,c+d x\right )}{3 d}\\ &=\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{\left (2 b e^2\right ) \operatorname{Subst}\left (\int x \left (a+b \tanh ^{-1}(x)\right ) \, dx,x,c+d x\right )}{3 d}-\frac{\left (2 b e^2\right ) \operatorname{Subst}\left (\int \frac{x \left (a+b \tanh ^{-1}(x)\right )}{1-x^2} \, dx,x,c+d x\right )}{3 d}\\ &=\frac{b e^2 (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}+\frac{e^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{\left (2 b e^2\right ) \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{1-x} \, dx,x,c+d x\right )}{3 d}-\frac{\left (b^2 e^2\right ) \operatorname{Subst}\left (\int \frac{x^2}{1-x^2} \, dx,x,c+d x\right )}{3 d}\\ &=\frac{1}{3} b^2 e^2 x+\frac{b e^2 (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}+\frac{e^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{2 b e^2 \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac{2}{1-c-d x}\right )}{3 d}-\frac{\left (b^2 e^2\right ) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,c+d x\right )}{3 d}+\frac{\left (2 b^2 e^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{2}{1-x}\right )}{1-x^2} \, dx,x,c+d x\right )}{3 d}\\ &=\frac{1}{3} b^2 e^2 x-\frac{b^2 e^2 \tanh ^{-1}(c+d x)}{3 d}+\frac{b e^2 (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}+\frac{e^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{2 b e^2 \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac{2}{1-c-d x}\right )}{3 d}-\frac{\left (2 b^2 e^2\right ) \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1-c-d x}\right )}{3 d}\\ &=\frac{1}{3} b^2 e^2 x-\frac{b^2 e^2 \tanh ^{-1}(c+d x)}{3 d}+\frac{b e^2 (c+d x)^2 \left (a+b \tanh ^{-1}(c+d x)\right )}{3 d}+\frac{e^2 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}+\frac{e^2 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{3 d}-\frac{2 b e^2 \left (a+b \tanh ^{-1}(c+d x)\right ) \log \left (\frac{2}{1-c-d x}\right )}{3 d}-\frac{b^2 e^2 \text{Li}_2\left (1-\frac{2}{1-c-d x}\right )}{3 d}\\ \end{align*}
Mathematica [A] time = 0.450277, size = 150, normalized size = 0.84 \[ \frac{e^2 \left (b^2 \left (\text{PolyLog}\left (2,-e^{-2 \tanh ^{-1}(c+d x)}\right )+(c+d x)^3 \tanh ^{-1}(c+d x)^2+(c+d x)^2 \tanh ^{-1}(c+d x)-\tanh ^{-1}(c+d x)^2-\tanh ^{-1}(c+d x)-2 \tanh ^{-1}(c+d x) \log \left (e^{-2 \tanh ^{-1}(c+d x)}+1\right )+c+d x\right )+a^2 (c+d x)^3+a b \left ((c+d x)^2+\log \left ((c+d x)^2-1\right )+2 (c+d x)^3 \tanh ^{-1}(c+d x)\right )\right )}{3 d} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.058, size = 583, normalized size = 3.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.94724, size = 836, normalized size = 4.67 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (a^{2} d^{2} e^{2} x^{2} + 2 \, a^{2} c d e^{2} x + a^{2} c^{2} e^{2} +{\left (b^{2} d^{2} e^{2} x^{2} + 2 \, b^{2} c d e^{2} x + b^{2} c^{2} e^{2}\right )} \operatorname{artanh}\left (d x + c\right )^{2} + 2 \,{\left (a b d^{2} e^{2} x^{2} + 2 \, a b c d e^{2} x + a b c^{2} e^{2}\right )} \operatorname{artanh}\left (d x + c\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} e^{2} \left (\int a^{2} c^{2}\, dx + \int a^{2} d^{2} x^{2}\, dx + \int b^{2} c^{2} \operatorname{atanh}^{2}{\left (c + d x \right )}\, dx + \int 2 a b c^{2} \operatorname{atanh}{\left (c + d x \right )}\, dx + \int 2 a^{2} c d x\, dx + \int b^{2} d^{2} x^{2} \operatorname{atanh}^{2}{\left (c + d x \right )}\, dx + \int 2 a b d^{2} x^{2} \operatorname{atanh}{\left (c + d x \right )}\, dx + \int 2 b^{2} c d x \operatorname{atanh}^{2}{\left (c + d x \right )}\, dx + \int 4 a b c d x \operatorname{atanh}{\left (c + d x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (d e x + c e\right )}^{2}{\left (b \operatorname{artanh}\left (d x + c\right ) + a\right )}^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]